/* const handleadd = (num)=>{
    return {
        type:'handle-add',
        data:num
    }
} */
/*  type的改成变量，方便操作 */
import * as actions from './action-type';
const handleadd = num => ({ type: actions.handle_add, data: num })
const handledecrement = num => ({ type: actions.handle_decrement, data: num })
export {
    handleadd,
    handledecrement
}